using AutoMapper;
using NBModular.Lib.Mapper.AutoMapper;
using NBModular.Module.WeChat.Application.WeChatUserService.ViewModels;
using NBModular.Module.WeChat.Domain.WeChatUser;

namespace NBModular.Module.WeChat.Application.WeChatUserService
{
    public class MapperConfig : IMapperConfig
    {
        public void Bind(IMapperConfigurationExpression cfg)
        {
            cfg.CreateMap<WeChatUserAddModel, WeChatUserEntity>();
            cfg.CreateMap<WeChatUserEntity, WeChatUserUpdateModel>();
            cfg.CreateMap<WeChatUserUpdateModel, WeChatUserEntity>();
            cfg.CreateMap<WeChatUserModel, WeChatUserEntity>();
            cfg.CreateMap<WeChatUserEntity, WeChatUserModel>();
        }
    }
}
